package com.cloud.service;

import com.cloud.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @BelongsProject: my
 * @BelongsPackage: com.cloud.service
 * @Author: ji ge
 * @CreateTime: 2024-02-04  14:37
 * @Description: TODO
 * @Version: 1.0
 */
@FeignClient("seata-storage-service")
public interface StorageService {

    @PostMapping("/storage/decrease")
    R decrease(@RequestParam("productId") Long productId,
               @RequestParam("count")  Integer count);
}
